package PTA;

import java.util.Scanner;
class Goods {
    private String id;
    private String name;
    private double price;
    public Goods(String id, String name, double price) {
        this.id = id;
        this.name = name;
        this.price = price;
    }

    @Override
    public String toString() {
        return  id + "," + name + "," + price ;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }
}

public class t12 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        Goods goods=new Goods(sc.next(),sc.next(),sc.nextDouble());
        System.out.println(goods);
        goods.setId("No-"+goods.getId());
        goods.setName("Name-"+goods.getName());
        if(goods.getPrice()>10)
            goods.setPrice(goods.getPrice()*0.9);
        System.out.println(goods);
        sc.close();
    }
}
